import request from '@/router/axios';

export const getList = (page, size, params) => {
    return request({
        url: '/order/orderDistribution/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}
export const getDetail = (distributionId) => {
    return request({
        url: '/order/orderDistribution/detail',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            distributionId,
        }
    })
}

export const getOrderFormGoods = (data) => {
    return request({
        url: 'order/orderGoods/listAll',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: data
    })
}
export const examineUserList = (id,phone) => {
    return request({
        url: 'api/mgr/examineUserList',
        method: 'post',
        params: {
            id:id,
            phone:phone
        }
    })
}
export const examine = (data) => {
    return request({
        url: 'order/orderDistribution/examine',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: data
    })
}